package com.xjzd.portrait.websocket;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@SpringBootApplication
@RestController
public class App {



    public static void main(String[] args) {
        SpringApplication.run(App.class, args);
    }

    @PostMapping("/push/{msg}")
    public void push(@PathVariable String msg) {
        LoggerQueue.getInstance().push(msg);
    }
}
